﻿
@{
    ViewBag.Title = "SelectResult";
    Layout = "~/Areas/admin/Views/Shared/_Layout.cshtml";
    List<One_day.Models.T_Shop_Order> order = ViewBag.order;
    var num = ViewBag.num;
}

<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">订单检索成功</h1>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    当前所有订单
                </div>
                <!-- /.panel-heading -->
                <div class="panel-body">
                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr>
                                <th>商品名字</th>
                                <th>用户名</th>
                                <th>数量</th>
                                <th>总价前</th>
                                <th>订单时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            @{
                                foreach (var item in order)
                                {
                                    <tr class="odd gradeX" id="row_@item.Id">
                                        <td>@item.ProductName</td>
                                        <td>@item.UserName</td>
                                        <td>@item.Amount</td>
                                        <td>@item.Total_price</td>
                                        <td>@item.Time</td>
                                    </tr>
                                }
                            }
                        </tbody>
                    </table>
                </div>
                <!-- /.panel-body -->
            </div>
            <!-- /.panel -->
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <a style="float:right" href="/admin/order/select">
        <label style="font-size:20px;">共有：@num 个订单</label><br />
        <label style="font-size:20px;">点击返回查询</label>
    </a>
</div>

